package com.ruoyi.common.constant;

/**
 * 通用常量信息
 * 
 * @author ruoyi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
     * 当前记录起始索引
     */
    public static String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static String IS_ASC = "isAsc";

    /**
     * 手机号码格式
     */
    public final static String MOBILE_PATTERN = "^1[0-9]{10}$";
    /**
     * 密码格式
     */
    public final static String PWD_PATTERN = "(?![a-zA-Z]+$)(?!\\d+$)[a-zA-Z0-9]{6,16}$";
    /**
     * 交易密码格式
     */
    public final static String TRADE_PWD_PATTERN = "^[0-9]{6}$";

    /**
     * 邮箱格式
     */
    public final static String EMAIL_PATTERN = "([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+\\.[a-zA-Z]{2,3}$";

    public static final String USDT_CNY = "usdt_cny";

    public final static String WALLET_SIGN_KEY = "TS1I^ITX4^tU^gqDPaB6Qze4rguAX%ze";
}
